package com.ftwj.demo.modular.entity;

import java.io.Serializable;
import java.util.Date;

import com.ftwj.demo.base.annotation.Column;
import com.ftwj.demo.base.annotation.Ignore;
import com.ftwj.demo.base.annotation.Order;
import com.ftwj.demo.base.annotation.Primarykey;
import com.ftwj.demo.base.annotation.QueryTable;
import com.ftwj.demo.base.annotation.Table;
import com.ftwj.demo.base.constant.Const;
import com.ftwj.demo.base.constant.QueryModel;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
*
* <p>Title: SmsNoteBean</p>  
* <p>Description: 描述</p>
* <p>Copyright: Copyright (c) 2020 </p>  
* <p>Company: 兰州飞天网景信息产业有限公司</p>    
* @author DuLiGang
* @date 2020年04月09日 16:00:14
* @version V1.0
*/
@Data
@Table(name="tb_sms_note")
@Accessors(chain=true)
@ApiModel(value="SmsNoteBean对象", description="")
public class SmsNoteBean implements Serializable {

	/** serialVersionUID*/ 
	@Ignore
	private static final long serialVersionUID = 1L;
	
 	@Primarykey(name="note_id")
	private Integer noteId;
	@Column(name="user_id")
	@ApiModelProperty(value = "用户ID")
	private Integer userId;
	@QueryTable(model=QueryModel.LEFT_LIKE)
	@ApiModelProperty(value = "接收的电话号码")
	private String phone;
	@ApiModelProperty(value = "短信类型（1.验证码，2.推送短信）")
	private Integer type;
	@ApiModelProperty(value = "如果为验证码短信的短信验证码")
	private String code;
	@ApiModelProperty(value = "短信内容")
	private String content;
	@ApiModelProperty(value = "短信失效时间")
	private Date timeout;
	@Column(name="create_user")
	@ApiModelProperty(value = "短信发送人")
	private Integer createUser;
	@Column(name="create_time")
	@ApiModelProperty(value = "短信发送时间")
	@Order(order=Const.ORDER_DESC,sort=0)
	private Date createTime;
	
}